<style>
.table>tbody>.td_first>td{ border-top:0px;}
</style>
<div class="page-content" >
            
    <div class="panel panel-default">
        <div class="panel-heading">
            试卷管理
        </div>
        <div class="panel-body">
              <div class="list_vmall_rig">
          
<div class="span10" id="datacontent" >
			 
			
			<form action="<{:U('Questions/exams')}>" method="get" >
				<table class="table">
					 
					<tbody><tr class="td_first">
						<td>
							试卷ID：
						</td>
						<td>
 
							<input name="examid" class="input-small" size="25" type="text" value="<{$examid}>" autocomplete="off">
						</td>
						<td>
							录入时间：
						</td>
						<td>
							<input class="input-small datetimepicker" data-date="" data-date-format="yyyy-mm-dd" type="text" name="stime" size="10" id="stime" value="<{$stime}>" autocomplete="off"> - <input class="input-small datetimepicker" data-date="" data-date-format="yyyy-mm-dd" size="10" type="text" name="etime" id="etime" value="<{$etime}>" autocomplete="off">
						</td>
						<td>
							关键字：
						</td>
						<td>
							<input class="input-small" name="kw"  size="25" type="text" value="<{$kw}>" autocomplete="off">
						</td>
					</tr>
			         
					<tr>
						<td>
							录入人：
						</td>
			        	<td>
			        		<input class="input-small" name="examauthor" size="25" type="text" value="<{$examauthor}>" autocomplete="off">
			        	</td>
			        	 <td colspan="4">
							课程：
					
			        		<select name="subjectid"  autocomplete="off">
				        		<option value="0">选择科目</option>
								  	<volist name="subject_list" id="vo">
						  			<option <if condition="$subjectid eq $vo['subjectid']">selected="selected"</if>  value="<{$vo.subjectid}>"><{$vo.subject}></option>
									</volist>	
						  	</select>
			        &nbsp;&nbsp;&nbsp;类型：
							<select name="examtype" class="input-medium" autocomplete="off">
						  		<option value="0">类型不限</option>
						  		<volist name="exam_type" id="vo">
						  <option <if condition="$examtype eq $key">selected="selected"</if> value="<{$key}>"><{$vo}></option>
								</volist>			
						  	  </select>
						 
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;难度：
					
							<select name="examlevel" class="input-medium" autocomplete="off">
						  		<option value="0">难度不限</option>
								<volist name="questionlevel" id="vo">
						  			<option <if condition="$examlevel eq $key">selected="selected"</if> value="<{$key}>"><{$vo}></option>
								</volist>	
					  		</select>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<button class="btn btn-primary" type="submit" autocomplete="off">搜索</button>
						</td>
						<td colspan="4"></td>
					</tr>
				</tbody></table>
			</form>
	
	<div class="bootstrap-table">
		<div class="fixed-table-container" style="padding-bottom: 0px;"> 
			<div class="fixed-table-body"> 
				<table id="data-table" class="table"><thead>
			<tr>
			 
			<th style="" data-field="id"><div class="th-inner sortable both desc">ID</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">试卷名称</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">组卷类型</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">组卷人</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">考试科目</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">组卷时间</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">难度</div><div class="fht-cell"></div></th>
			<th style="" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
			</tr></thead>
			<tbody>
			<volist name="data" id="vo">
			<tr>
			<td style=""><{$vo.examid}></td>
			<td style=""><{:cutstr($vo['exam'],70)}></td>
			<td style=""><{$exam_type[$vo['examtype']]}></td>
			<td style=""><{$vo.examauthor}></td>
			<td style=""><{$vo.subject.subject}></td>
			<td style=""><{$vo.add_time}></td>
			<td style=" text-align:center"><{$questionlevel[$vo['examlevel']]}></td>
			<td style="">

		<a target="_blank" href="<{:U('Questions/preview',array('examid'=>$vo['examid']))}>" class="btn btn-primary btn-xs">预览</a>&nbsp;&nbsp;
			<a href="<{:U('Questions/add_exams',array('type'=>$vo['examtype'],'examid'=>$vo['examid']))}>" class="btn btn-primary btn-xs">编辑</a>&nbsp;&nbsp;
			&nbsp;&nbsp;<a onclick="return confirm('确认删除？')"  href="<{:U('Questions/del_exams',array('examid'=>$vo['examid']))}>" class="btn btn-primary btn-xs delete-this">删除</a>
			
			 
			</td>
			</tr>
			</volist>
			</tbody></table>
			 </div> 
			  <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />
		</div>
	    </div>
			
	        
		</div>
                
                </div>
        </div>
    </div>
   

        </div>

            


  <!-- Modal -->
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">查看问题</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
         
      </div>
    </div>
  </div>
</div>
     


